#include <cstdlib>
extern float const colormap_jet[256][3] = {
	{ 0.00000000f, 0.00000000f, 0.50000000f},
	{ 0.00000000f, 0.00000000f, 0.51782531f},
	{ 0.00000000f, 0.00000000f, 0.53565062f},
	{ 0.00000000f, 0.00000000f, 0.55347594f},
	{ 0.00000000f, 0.00000000f, 0.57130125f},
	{ 0.00000000f, 0.00000000f, 0.58912656f},
	{ 0.00000000f, 0.00000000f, 0.60695187f},
	{ 0.00000000f, 0.00000000f, 0.62477718f},
	{ 0.00000000f, 0.00000000f, 0.64260250f},
	{ 0.00000000f, 0.00000000f, 0.66042781f},
	{ 0.00000000f, 0.00000000f, 0.67825312f},
	{ 0.00000000f, 0.00000000f, 0.69607843f},
	{ 0.00000000f, 0.00000000f, 0.71390374f},
	{ 0.00000000f, 0.00000000f, 0.73172906f},
	{ 0.00000000f, 0.00000000f, 0.74955437f},
	{ 0.00000000f, 0.00000000f, 0.76737968f},
	{ 0.00000000f, 0.00000000f, 0.78520499f},
	{ 0.00000000f, 0.00000000f, 0.80303030f},
	{ 0.00000000f, 0.00000000f, 0.82085561f},
	{ 0.00000000f, 0.00000000f, 0.83868093f},
	{ 0.00000000f, 0.00000000f, 0.85650624f},
	{ 0.00000000f, 0.00000000f, 0.87433155f},
	{ 0.00000000f, 0.00000000f, 0.89215686f},
	{ 0.00000000f, 0.00000000f, 0.90998217f},
	{ 0.00000000f, 0.00000000f, 0.92780749f},
	{ 0.00000000f, 0.00000000f, 0.94563280f},
	{ 0.00000000f, 0.00000000f, 0.96345811f},
	{ 0.00000000f, 0.00000000f, 0.98128342f},
	{ 0.00000000f, 0.00000000f, 0.99910873f},
	{ 0.00000000f, 0.00000000f, 1.00000000f},
	{ 0.00000000f, 0.00000000f, 1.00000000f},
	{ 0.00000000f, 0.00000000f, 1.00000000f},
	{ 0.00000000f, 0.00196078f, 1.00000000f},
	{ 0.00000000f, 0.01764706f, 1.00000000f},
	{ 0.00000000f, 0.03333333f, 1.00000000f},
	{ 0.00000000f, 0.04901961f, 1.00000000f},
	{ 0.00000000f, 0.06470588f, 1.00000000f},
	{ 0.00000000f, 0.08039216f, 1.00000000f},
	{ 0.00000000f, 0.09607843f, 1.00000000f},
	{ 0.00000000f, 0.11176471f, 1.00000000f},
	{ 0.00000000f, 0.12745098f, 1.00000000f},
	{ 0.00000000f, 0.14313725f, 1.00000000f},
	{ 0.00000000f, 0.15882353f, 1.00000000f},
	{ 0.00000000f, 0.17450980f, 1.00000000f},
	{ 0.00000000f, 0.19019608f, 1.00000000f},
	{ 0.00000000f, 0.20588235f, 1.00000000f},
	{ 0.00000000f, 0.22156863f, 1.00000000f},
	{ 0.00000000f, 0.23725490f, 1.00000000f},
	{ 0.00000000f, 0.25294118f, 1.00000000f},
	{ 0.00000000f, 0.26862745f, 1.00000000f},
	{ 0.00000000f, 0.28431373f, 1.00000000f},
	{ 0.00000000f, 0.30000000f, 1.00000000f},
	{ 0.00000000f, 0.31568627f, 1.00000000f},
	{ 0.00000000f, 0.33137255f, 1.00000000f},
	{ 0.00000000f, 0.34705882f, 1.00000000f},
	{ 0.00000000f, 0.36274510f, 1.00000000f},
	{ 0.00000000f, 0.37843137f, 1.00000000f},
	{ 0.00000000f, 0.39411765f, 1.00000000f},
	{ 0.00000000f, 0.40980392f, 1.00000000f},
	{ 0.00000000f, 0.42549020f, 1.00000000f},
	{ 0.00000000f, 0.44117647f, 1.00000000f},
	{ 0.00000000f, 0.45686275f, 1.00000000f},
	{ 0.00000000f, 0.47254902f, 1.00000000f},
	{ 0.00000000f, 0.48823529f, 1.00000000f},
	{ 0.00000000f, 0.50392157f, 1.00000000f},
	{ 0.00000000f, 0.51960784f, 1.00000000f},
	{ 0.00000000f, 0.53529412f, 1.00000000f},
	{ 0.00000000f, 0.55098039f, 1.00000000f},
	{ 0.00000000f, 0.56666667f, 1.00000000f},
	{ 0.00000000f, 0.58235294f, 1.00000000f},
	{ 0.00000000f, 0.59803922f, 1.00000000f},
	{ 0.00000000f, 0.61372549f, 1.00000000f},
	{ 0.00000000f, 0.62941176f, 1.00000000f},
	{ 0.00000000f, 0.64509804f, 1.00000000f},
	{ 0.00000000f, 0.66078431f, 1.00000000f},
	{ 0.00000000f, 0.67647059f, 1.00000000f},
	{ 0.00000000f, 0.69215686f, 1.00000000f},
	{ 0.00000000f, 0.70784314f, 1.00000000f},
	{ 0.00000000f, 0.72352941f, 1.00000000f},
	{ 0.00000000f, 0.73921569f, 1.00000000f},
	{ 0.00000000f, 0.75490196f, 1.00000000f},
	{ 0.00000000f, 0.77058824f, 1.00000000f},
	{ 0.00000000f, 0.78627451f, 1.00000000f},
	{ 0.00000000f, 0.80196078f, 1.00000000f},
	{ 0.00000000f, 0.81764706f, 1.00000000f},
	{ 0.00000000f, 0.83333333f, 1.00000000f},
	{ 0.00000000f, 0.84901961f, 1.00000000f},
	{ 0.00000000f, 0.86470588f, 0.99620493f},
	{ 0.00000000f, 0.88039216f, 0.98355471f},
	{ 0.00000000f, 0.89607843f, 0.97090449f},
	{ 0.00948767f, 0.91176471f, 0.95825427f},
	{ 0.02213789f, 0.92745098f, 0.94560405f},
	{ 0.03478811f, 0.94313725f, 0.93295383f},
	{ 0.04743833f, 0.95882353f, 0.92030361f},
	{ 0.06008855f, 0.97450980f, 0.90765338f},
	{ 0.07273877f, 0.99019608f, 0.89500316f},
	{ 0.08538899f, 1.00000000f, 0.88235294f},
	{ 0.09803922f, 1.00000000f, 0.86970272f},
	{ 0.11068944f, 1.00000000f, 0.85705250f},
	{ 0.12333966f, 1.00000000f, 0.84440228f},
	{ 0.13598988f, 1.00000000f, 0.83175206f},
	{ 0.14864010f, 1.00000000f, 0.81910183f},
	{ 0.16129032f, 1.00000000f, 0.80645161f},
	{ 0.17394054f, 1.00000000f, 0.79380139f},
	{ 0.18659077f, 1.00000000f, 0.78115117f},
	{ 0.19924099f, 1.00000000f, 0.76850095f},
	{ 0.21189121f, 1.00000000f, 0.75585073f},
	{ 0.22454143f, 1.00000000f, 0.74320051f},
	{ 0.23719165f, 1.00000000f, 0.73055028f},
	{ 0.24984187f, 1.00000000f, 0.71790006f},
	{ 0.26249209f, 1.00000000f, 0.70524984f},
	{ 0.27514231f, 1.00000000f, 0.69259962f},
	{ 0.28779254f, 1.00000000f, 0.67994940f},
	{ 0.30044276f, 1.00000000f, 0.66729918f},
	{ 0.31309298f, 1.00000000f, 0.65464896f},
	{ 0.32574320f, 1.00000000f, 0.64199873f},
	{ 0.33839342f, 1.00000000f, 0.62934851f},
	{ 0.35104364f, 1.00000000f, 0.61669829f},
	{ 0.36369386f, 1.00000000f, 0.60404807f},
	{ 0.37634409f, 1.00000000f, 0.59139785f},
	{ 0.38899431f, 1.00000000f, 0.57874763f},
	{ 0.40164453f, 1.00000000f, 0.56609741f},
	{ 0.41429475f, 1.00000000f, 0.55344719f},
	{ 0.42694497f, 1.00000000f, 0.54079696f},
	{ 0.43959519f, 1.00000000f, 0.52814674f},
	{ 0.45224541f, 1.00000000f, 0.51549652f},
	{ 0.46489564f, 1.00000000f, 0.50284630f},
	{ 0.47754586f, 1.00000000f, 0.49019608f},
	{ 0.49019608f, 1.00000000f, 0.47754586f},
	{ 0.50284630f, 1.00000000f, 0.46489564f},
	{ 0.51549652f, 1.00000000f, 0.45224541f},
	{ 0.52814674f, 1.00000000f, 0.43959519f},
	{ 0.54079696f, 1.00000000f, 0.42694497f},
	{ 0.55344719f, 1.00000000f, 0.41429475f},
	{ 0.56609741f, 1.00000000f, 0.40164453f},
	{ 0.57874763f, 1.00000000f, 0.38899431f},
	{ 0.59139785f, 1.00000000f, 0.37634409f},
	{ 0.60404807f, 1.00000000f, 0.36369386f},
	{ 0.61669829f, 1.00000000f, 0.35104364f},
	{ 0.62934851f, 1.00000000f, 0.33839342f},
	{ 0.64199873f, 1.00000000f, 0.32574320f},
	{ 0.65464896f, 1.00000000f, 0.31309298f},
	{ 0.66729918f, 1.00000000f, 0.30044276f},
	{ 0.67994940f, 1.00000000f, 0.28779254f},
	{ 0.69259962f, 1.00000000f, 0.27514231f},
	{ 0.70524984f, 1.00000000f, 0.26249209f},
	{ 0.71790006f, 1.00000000f, 0.24984187f},
	{ 0.73055028f, 1.00000000f, 0.23719165f},
	{ 0.74320051f, 1.00000000f, 0.22454143f},
	{ 0.75585073f, 1.00000000f, 0.21189121f},
	{ 0.76850095f, 1.00000000f, 0.19924099f},
	{ 0.78115117f, 1.00000000f, 0.18659077f},
	{ 0.79380139f, 1.00000000f, 0.17394054f},
	{ 0.80645161f, 1.00000000f, 0.16129032f},
	{ 0.81910183f, 1.00000000f, 0.14864010f},
	{ 0.83175206f, 1.00000000f, 0.13598988f},
	{ 0.84440228f, 1.00000000f, 0.12333966f},
	{ 0.85705250f, 1.00000000f, 0.11068944f},
	{ 0.86970272f, 1.00000000f, 0.09803922f},
	{ 0.88235294f, 1.00000000f, 0.08538899f},
	{ 0.89500316f, 1.00000000f, 0.07273877f},
	{ 0.90765338f, 1.00000000f, 0.06008855f},
	{ 0.92030361f, 1.00000000f, 0.04743833f},
	{ 0.93295383f, 1.00000000f, 0.03478811f},
	{ 0.94560405f, 0.98838054f, 0.02213789f},
	{ 0.95825427f, 0.97385621f, 0.00948767f},
	{ 0.97090449f, 0.95933188f, 0.00000000f},
	{ 0.98355471f, 0.94480755f, 0.00000000f},
	{ 0.99620493f, 0.93028322f, 0.00000000f},
	{ 1.00000000f, 0.91575890f, 0.00000000f},
	{ 1.00000000f, 0.90123457f, 0.00000000f},
	{ 1.00000000f, 0.88671024f, 0.00000000f},
	{ 1.00000000f, 0.87218591f, 0.00000000f},
	{ 1.00000000f, 0.85766158f, 0.00000000f},
	{ 1.00000000f, 0.84313725f, 0.00000000f},
	{ 1.00000000f, 0.82861293f, 0.00000000f},
	{ 1.00000000f, 0.81408860f, 0.00000000f},
	{ 1.00000000f, 0.79956427f, 0.00000000f},
	{ 1.00000000f, 0.78503994f, 0.00000000f},
	{ 1.00000000f, 0.77051561f, 0.00000000f},
	{ 1.00000000f, 0.75599129f, 0.00000000f},
	{ 1.00000000f, 0.74146696f, 0.00000000f},
	{ 1.00000000f, 0.72694263f, 0.00000000f},
	{ 1.00000000f, 0.71241830f, 0.00000000f},
	{ 1.00000000f, 0.69789397f, 0.00000000f},
	{ 1.00000000f, 0.68336964f, 0.00000000f},
	{ 1.00000000f, 0.66884532f, 0.00000000f},
	{ 1.00000000f, 0.65432099f, 0.00000000f},
	{ 1.00000000f, 0.63979666f, 0.00000000f},
	{ 1.00000000f, 0.62527233f, 0.00000000f},
	{ 1.00000000f, 0.61074800f, 0.00000000f},
	{ 1.00000000f, 0.59622367f, 0.00000000f},
	{ 1.00000000f, 0.58169935f, 0.00000000f},
	{ 1.00000000f, 0.56717502f, 0.00000000f},
	{ 1.00000000f, 0.55265069f, 0.00000000f},
	{ 1.00000000f, 0.53812636f, 0.00000000f},
	{ 1.00000000f, 0.52360203f, 0.00000000f},
	{ 1.00000000f, 0.50907771f, 0.00000000f},
	{ 1.00000000f, 0.49455338f, 0.00000000f},
	{ 1.00000000f, 0.48002905f, 0.00000000f},
	{ 1.00000000f, 0.46550472f, 0.00000000f},
	{ 1.00000000f, 0.45098039f, 0.00000000f},
	{ 1.00000000f, 0.43645606f, 0.00000000f},
	{ 1.00000000f, 0.42193174f, 0.00000000f},
	{ 1.00000000f, 0.40740741f, 0.00000000f},
	{ 1.00000000f, 0.39288308f, 0.00000000f},
	{ 1.00000000f, 0.37835875f, 0.00000000f},
	{ 1.00000000f, 0.36383442f, 0.00000000f},
	{ 1.00000000f, 0.34931009f, 0.00000000f},
	{ 1.00000000f, 0.33478577f, 0.00000000f},
	{ 1.00000000f, 0.32026144f, 0.00000000f},
	{ 1.00000000f, 0.30573711f, 0.00000000f},
	{ 1.00000000f, 0.29121278f, 0.00000000f},
	{ 1.00000000f, 0.27668845f, 0.00000000f},
	{ 1.00000000f, 0.26216412f, 0.00000000f},
	{ 1.00000000f, 0.24763980f, 0.00000000f},
	{ 1.00000000f, 0.23311547f, 0.00000000f},
	{ 1.00000000f, 0.21859114f, 0.00000000f},
	{ 1.00000000f, 0.20406681f, 0.00000000f},
	{ 1.00000000f, 0.18954248f, 0.00000000f},
	{ 1.00000000f, 0.17501816f, 0.00000000f},
	{ 1.00000000f, 0.16049383f, 0.00000000f},
	{ 1.00000000f, 0.14596950f, 0.00000000f},
	{ 1.00000000f, 0.13144517f, 0.00000000f},
	{ 1.00000000f, 0.11692084f, 0.00000000f},
	{ 1.00000000f, 0.10239651f, 0.00000000f},
	{ 1.00000000f, 0.08787219f, 0.00000000f},
	{ 0.99910873f, 0.07334786f, 0.00000000f},
	{ 0.98128342f, 0.05882353f, 0.00000000f},
	{ 0.96345811f, 0.04429920f, 0.00000000f},
	{ 0.94563280f, 0.02977487f, 0.00000000f},
	{ 0.92780749f, 0.01525054f, 0.00000000f},
	{ 0.90998217f, 0.00072622f, 0.00000000f},
	{ 0.89215686f, 0.00000000f, 0.00000000f},
	{ 0.87433155f, 0.00000000f, 0.00000000f},
	{ 0.85650624f, 0.00000000f, 0.00000000f},
	{ 0.83868093f, 0.00000000f, 0.00000000f},
	{ 0.82085561f, 0.00000000f, 0.00000000f},
	{ 0.80303030f, 0.00000000f, 0.00000000f},
	{ 0.78520499f, 0.00000000f, 0.00000000f},
	{ 0.76737968f, 0.00000000f, 0.00000000f},
	{ 0.74955437f, 0.00000000f, 0.00000000f},
	{ 0.73172906f, 0.00000000f, 0.00000000f},
	{ 0.71390374f, 0.00000000f, 0.00000000f},
	{ 0.69607843f, 0.00000000f, 0.00000000f},
	{ 0.67825312f, 0.00000000f, 0.00000000f},
	{ 0.66042781f, 0.00000000f, 0.00000000f},
	{ 0.64260250f, 0.00000000f, 0.00000000f},
	{ 0.62477718f, 0.00000000f, 0.00000000f},
	{ 0.60695187f, 0.00000000f, 0.00000000f},
	{ 0.58912656f, 0.00000000f, 0.00000000f},
	{ 0.57130125f, 0.00000000f, 0.00000000f},
	{ 0.55347594f, 0.00000000f, 0.00000000f},
	{ 0.53565062f, 0.00000000f, 0.00000000f},
	{ 0.51782531f, 0.00000000f, 0.00000000f},
	{ 0.50000000f, 0.00000000f, 0.00000000f}
};